﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CredentialList.aspx.cs" Inherits="UI.ModMini.CredentialList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>证照列表</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script> 
</head>
<body>
    <form id="form1" runat="server">
     <div id="pagetop" class="pagetop">
            <div class="pagetopleft">
                证照列表</div>
            <div class="pagetopright">
                名称 <asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
               
                <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                    CssClass="ButtonCss" />
              

                <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" OnClick="btnExcel_Click" />
                <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss"  />
                &nbsp;
            </div>
        </div>

    <div id="content">
        <asp:GridView ID="gvList" runat="server" DataKeyNames="ID" Width="100%" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
            CellPadding="3" GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound" class="td">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" Visible="false" SortExpression="ID">
                </asp:BoundField>

 
                     <asp:TemplateField HeaderText="证件编号" SortExpression="CredCode"  >
                <ItemTemplate>
                    <a href="javascript:ShowLink('CredentialAdd.aspx?ID=<%# Eval("ID")%>',800,550)">
                        <%# Eval("CredCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
               <asp:TemplateField HeaderText="名称" SortExpression="CredName"  >
                <ItemTemplate>
                    <a href="javascript:ShowLink('CredentialAdd.aspx?ID=<%# Eval("ID")%>',800,550)">
                        <%# Eval("CredName")%></a>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
                <asp:BoundField DataField="EmpCode" HeaderText="员工编号" SortExpression="EmpCode">
                    <ItemStyle Width="70px" />
                </asp:BoundField>
                 <asp:BoundField DataField="EmpName" HeaderText="姓名" SortExpression="EmpName">
                    <ItemStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="TypeName" HeaderText="类别" SortExpression="TypeName">
                    <ItemStyle Width="80px" />
                </asp:BoundField>   
                <asp:BoundField DataField="Etime" HeaderText="失效日期" DataFormatString="{0:d}"
                    SortExpression="Etime">
                    <ItemStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="NextTime" HeaderText="下次复检" DataFormatString="{0:d}"
                    SortExpression="NextTime">
                    <ItemStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo"></asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
        </asp:GridView>
         <div id="divAmount" class="amountLine">
        <asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </div>
    </form>
</body>
</html>
